<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>Login page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="style/style.css">
	<script type="text/javascript" src="easyui/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="script/main.js"></script>
	<script type="text/javascript">
		$(function(){
			$('#win').window({
			    collapsible:false,
			    minimizable:false,
			    maximizable:false,
			    closable:false,
			    resizable:false,
			    draggable:false
			});	
		});
	</script>
  </head>
  
  <body>
  	<jsp:include page="header.jsp"></jsp:include>
  	<div id="win" class="easyui-window" title="Please login" style="width:370px;height:220px;">
	    <form id="login" name="login" onkeydown="if(event.keyCode==13) login.submit();" style="padding:10px 20px 10px 40px;" action="handler?action=login" method="post">
	        <p>Username: <input type="text" name="username" style="width:200px;"></p>
	        <p>Password: <input type="password" name="password" style="width:200px;"></p>
	        <div style="padding:5px;text-align:center;">
	        	<a href="javascript:$('#login').submit();" class="easyui-linkbutton" icon="icon-ok">Login</a>
            	<a href="login.jsp" class="easyui-linkbutton" icon="icon-cancel">Cancel</a>
	        </div>
	    </form>
	</div>
  </body>
</html>
